package com.powerunion.datacollection.dao;

import java.util.List;

public interface GlobalTargetsDataDao {
	/**
	 * 保存报送数据
	 * @param globalTargetsDataList
	 * @param formId 对应表单Id
	 * @param submiUser 填报者
	 * @param procId  流程实例id
	 * @param iTemplate 是否是模板初始化数据 0是模板初始化数据 1则不是模板初始化数据
	 * @param actId  环节id
	 * @param permissionUPFile 是否允许上传附件
	 * @return
	 */
	public boolean save(List globalTargetsDataList, String formId,String submiUser,String procId,int iTemplate,String actId)
		throws DaoException ;
	
	/**
	 * 保存初始化表单数据
	 * @param globalTargetsDataList
	 * @param formId
	 * @param permissionUPFile 是否允许上传附件
	 * @return
	 */
	public boolean save(List globalTargetsDataList, String formId,int permissionUPFile) throws DaoException;
	public boolean delete(String documentId)throws DaoException;
	
	/**
	 * 取得公文的指标报送模板初始化值
	 * 用于展现公文的指标报送区
	 * @param documentId 公文id
	 * @return
	 * @throws DaoException
	 */
	public List getTemplateData(String documentId) throws DaoException;
	
	/**
	 * 获取某个上报的指标信息数据
	 * @param documentId 表单
	 * @param submiUser 用户
	 * @param procId 流程实例
	 * @param actId 环节步骤id
	 * @return
	 * @throws DaoException
	 */
	public List getTargetSubmiData(String documentId,String submiUser,String procId,String actId) throws DaoException;
	
	/**
	 * 更新初始化指标报送表单状态
	 * @param formId
	 * @return
	 */
	public boolean updateFormState(String formId) throws DaoException;
	
	public List getApproveActivityData(String documentId,String procId,String actId) throws DaoException;

	public int getPermissionUPFile(String formId) throws DaoException;
}
